console.log(import.meta.env)

import { createApp } from 'vue'
import App from '@/App.vue'
import router from '@/routes/index.ts'
import pinia from '@/store/index.ts'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-expect-error
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import 'virtual:svg-icons-register' // 使用svg
import globalComponent from '@/components'

import '@/styles/index.scss' // 全局样式

const app = createApp(App)
app.use(ElementPlus, { locale: zhCn })
app.use(globalComponent)
app.use(router)
app.use(pinia)
app.mount('#app')
